home *** CD-ROM | disk | FTP | other *** search
- Path: EU.net!sun4nl!xs4all!usenet
- From: martijnl@xs4all.nl (Martijn Lievaart)
- Newsgroups: comp.lang.c++
- Subject: Re: Default Printer Detection
- Date: 2 Jan 1996 14:49:14 GMT
- Organization: XS4ALL, networking for the masses
- Message-ID: <4cbgla$dra@news.xs4all.nl>
- References: <4bumev$cjj@grid.direct.ca>
- NNTP-Posting-Host: mas01-15.dial.xs4all.nl
- X-Newsreader: WinVN 0.99.6
-
- In article <4bumev$cjj@grid.direct.ca>, rega@direct.caº says...
- >
- >Can anyone tell me how to detect the default printer in Visual C++
- >without having to go through CPrintDialog?
- >
- >Any help would be appreciated.. thx in advance.
-
- This is a Windows question, not a C++ question. But well. Answer is twofold:
- - Read Petzold's ``Programming Windows''.
- - (and now for the real answer) I don't know VC (or MFC) but you should read
- the 'device=' entry in the [windows] section of win.ini and parse it. Petzold
- explains this quite well, as it explains all the other basics you want to
- know.
-
- Hope this helps.
-
-
-
-